<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>住院费核算</title>
</head>
<body>

<div class="easyui-layout" data-options="fit:true,border:false">   
   
    <div data-options="region:'east',iconCls:'icon-reload',width:'25%'" style="border-top: none;">
    	<table class="easyui-datagrid" id="NoAccountTally_Table"
		data-options="singleSelect:true,height:'100%',width:'100%',onDblClickRow:writeTallyNoAccountByLiveID,
	                border:false,title:'未核算记录',url:'to_queryNoAcountTally' ">
				
		<thead>
			<tr>
				<th style="width: 40%;"  data-options="field:'TALLYID',align:'center'">账单号</th>
				<th style="width: 40%;" data-options="field:'LIVEID8',align:'center'">住院号</th>
				<th style="width: 20%;" data-options="field:'PATIENTNAME5',align:'center'">病人姓名</th>
			</tr>
		</thead>
		<tbody>
	</table>
    
    </div>    
    <div data-options="region:'center',border:false">
    	<fieldset class="field2">
			<legend>基本信息</legend>
			<table class="feesAccount" style="width: 95%; padding: 1px 1px;">
				<tr>
					<td width="25%">
					<input  style="width: 90%;" readonly="readonly" id="NoAccountTally_LiveID"
						class="easyui-textbox" label="住院号："></td>
					<td width="25%">
					<input style="width: 90%;" id="NoAccountTally_name"
						class="easyui-textbox" label="病人姓名：" readonly="readonly"></td>
					<td width="25%">
					<input style="width: 90%;" id="NoAccountTally_admin"
					readonly="readonly" class="easyui-textbox" label="核算人："></td>
					<td width="25%">
					<input style="width: 90%;"
						class="easyui-datebox" value="taday" label="核算日期："></td>
			</table>
		</fieldset>
		
	<table class="easyui-datagrid" id="NoAccountTallyByLiveID_Table"
		data-options="singleSelect:true,fitColumns: true, 
				nowrap: false,border:false,rownumbers:true,title:'未核算账单',
				pagination:true,pageList: [15,30,40,50],pageSize: 15,height:'85%',width:'100%'">
		<thead>
			<tr>
				<th  data-options="field:'tallyid',width:80,align:'center'">清单编号</th>
				<th  data-options="field:'tallytime',width:130,align:'center'">账单时间</th>
				<th  data-options="field:'patientname5',width:40,align:'center'">病人姓名</th>
				<th  data-options="field:'depositlimit4',width:40,align:'center'">预缴押金</th>
				<th  data-options="field:'tallytotal',width:50,align:'center'">账单合计</th>
				<th  data-options="field:'tallystatus',width:40,align:'center'">核算状态</th>
				<th  data-options="field:'paystatus2',width:50,align:'center'">结算状态</th>
				<th  data-options="field:'as',width:90,align:'center',formatter:TallyHandle"></th>
			</tr>
		</thead>
		<tbody>
	</table>
			
    </div>   
</div> 


<script type="text/javascript">
	//操作按钮
    var TallyHandle = function(value,row,index){
	var btn1 = "<input onclick='createWindowToAccountTally("+ index +")' class='Tally_bt'  type='button' value='核算账单'>";
	return btn1 ;
	}
</script>

	<style type="text/css">
	.Tally_bt{ 
	margin: 2px 8px 2px 0px;
	height:25px;
	border-radius: 3px;
	font-size: 14px;
	border: 1px #3366FF solid;
	background: #3399FF;
	color: white;
	}
	.field2 {
	border: 1px solid gray;
	border-radius: 5px;
	margin: 5px;
	height: 10%;
}
</style>
</body>
</html>